package com.sxit.tdf.server.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author 橙子高
 * @since 2022-03-06
 */
@TableName("tb_file_storage")
@Schema(name = "FileStorage对象", description = "")
public class FileStorage implements Serializable {

  private static final long serialVersionUID = 1L;
  @Schema(description = "存储室id")
  @TableId(value = "id", type = IdType.AUTO)
  private Integer id;
  @Schema(description = "存储室名称")
  private String storageName;
  @Schema(description = "存储室经度")
  private String storageLongitude;
  @Schema(description = "存储室纬度")
  private String storageLatitude;
  @Schema(description = "详细的存储室名称")
  private String storageAddress;
  @Schema(description = "创建时间")
  private LocalDateTime createTime;
  @Schema(description = "负责的系部")
  private Integer deptId;

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getStorageName() {
    return storageName;
  }

  public void setStorageName(String storageName) {
    this.storageName = storageName;
  }

  public String getStorageLongitude() {
    return storageLongitude;
  }

  public void setStorageLongitude(String storageLongitude) {
    this.storageLongitude = storageLongitude;
  }

  public String getStorageLatitude() {
    return storageLatitude;
  }

  public void setStorageLatitude(String storageLatitude) {
    this.storageLatitude = storageLatitude;
  }

  public String getStorageAddress() {
    return storageAddress;
  }

  public void setStorageAddress(String storageAddress) {
    this.storageAddress = storageAddress;
  }

  public LocalDateTime getCreateTime() {
    return createTime;
  }

  public void setCreateTime(LocalDateTime createTime) {
    this.createTime = createTime;
  }

  public Integer getDeptId() {
    return deptId;
  }

  public void setDeptId(Integer deptId) {
    this.deptId = deptId;
  }

  @Override
  public String toString() {
    return "FileStorage{"
        + "id="
        + id
        + ", storageName="
        + storageName
        + ", storageLongitude="
        + storageLongitude
        + ", storageLatitude="
        + storageLatitude
        + ", storageAddress="
        + storageAddress
        + ", createTime="
        + createTime
        + ", deptId="
        + deptId
        + "}";
  }
}
